package com.algorithm;


public class RecursiveAcronym {


    static int max = 1000000;

    public static void main(String[] args) throws InterruptedException {

        System.out.println(r2(1));

    }

    public static int r1(int i) throws InterruptedException {
        if (i < max) {
            Thread.sleep(1000);
            return r1(++i);
        }
        return i;
    }
    public static int r2(int i) throws InterruptedException {

        while (i < max) {
            i++;
        }
        return i;
    }

}
